<template>
  <div>
    <div class="flex content-wrap">
      <div class="article-area">
        <el-row class="margin-top-20 flex article-item" v-for="(item,index) in 5" :key="index">
          <div>
            <img src="../assets/imgs/qgwt_avatar.png" class="qgwt_avatar">
          </div>
          <div class="margin-left-20">
            <div><span class="title">怎么和老公好相处，才能把日子过好呢？</span></div>
            <div class="margin-top-10">
              <span class="sub-title">
                日期：{{date}}  小编：心事情感咨询  阅读量：{{ readNumber }}次
              </span>
            </div>
            <div class="margin-top-5">
              <span class="article-content">
                在感情生活中，据说女性结婚后，把自己的身份证定位妻子、母亲、无意识的角色扮演，女性逐渐
                失去了兴趣和女性的味道。女性必须注意，女性对自己的错误认识会给整个家庭带来不幸，女性想
                要幸福女性必须注意，女性对自己的错误认识会给整个家庭带来不幸，女性想女性对自己的错误认
                识会给整个家庭带来不幸，女性想识会给整个家庭带来
              </span>
            </div>
            <div class="flex label-wrap">
              <span class="label">挽回老公</span>
              <span class="label margin-lr-20">相处之道</span>
              <span class="label">幸福婚姻</span>
            </div>
          </div>
        </el-row>
        <div class="margin-top-20 margin-left-20">
          <el-pagination
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"
            :current-page=5
            :page-size="5"
            layout="total, prev, pager, next, jumper"
            :total="100">
          </el-pagination>
        </div>
      </div>

      <!--      右侧-->
      <div class="character-area flex justify-end">
        <div style="width: 200px">
          <div><img src="../assets/imgs/qgdstj.png"></div>
          <div><img src="../assets/imgs/whal_jm.png" class="whal_ym"></div>
          <div><img src="../assets/imgs/dstd_whal.png"></div>
          <div class="pos-re">
            <img src="../assets/imgs/slide1.png" class="whal_ym">

            <div class="weixin-wrap">
              <img src="../assets/imgs/erweima.png" class="ver-middle erweima-img">
              <img src="../assets/imgs/qq.png" class="ver-middle qq-img">
            </div>

          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Qgwt",
  data(){
    return{
      date: '04-16',
      readNumber: 190,
    }
  },
  created() {

  },
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    }
  },
};
</script>

<style scoped lang="scss">



.weixin-wrap{
  position: absolute;
  top: 30px;
  left: 40px;

  img:nth-child(1){
    width: 80px;
  }

  img:nth-child(2){
    margin-left: 5px;
    width: 60px;
  }


}

  .content-wrap{
    padding: 20px 4%;
    width: 92%;
    align-items: center;

    .article-area{
      font-family: PingFangSC-Medium, PingFang SC;
      flex: 3;

      .article-item{
        border-bottom: 1px solid #F3F3F3;
        padding-bottom: 20px;
      }

      .qgwt_avatar{
        width: 260px;
        //height: 180px;
      }

      .title{
        font-size: 16px;
        font-weight: 500;
        color: #333333;
      }

      .sub-title{
        font-size: 12px;
        font-weight: 400;
        color: #999999;
      }

      .article-content{
        font-size: 13px;
        font-weight: 400;
        color: #333333;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp:3;
      }

      .label-wrap{

        position: absolute;
        bottom: 20px;

        .label{
          display: block;
          padding: 6px 12px;
          font-size: 12px;
          font-weight: 400;
          color: #333333;
          border-radius: 100px;
          border: 1px solid #E5E5E5;
        }
      }



    }

    .character-area {
      flex: 1;

      .whal_ym {
        width: 200px;
      }
    }
  }
</style>
